"Hors d ' oeuvres"
When it comes to Python's strip method, presumably anyone who touches Python knows it is primarily used to remove spaces. There are two ways to achieve this.
Method One: Using built-in functions
If name = = ' main ': str = '
Use
Reduces the size of object files that extend the Common Object file Format (Xcoff) by dropping the information used by the binding program and the symbol debugger.
Grammar
Strip [-v] [-R [-L] |-X [-L] |-T |-H |-e |-e] [-x {|64 |32_64}] [--]
Purpose
By removing the information used by the binding program and the symbolic debugging program, you can reduce the size of object files in the extended public object file format (xcoff.
Syntax
Strip [-V] [-R [-L] |-X [-L] |-T |-H |-E] [-X {32 |
Purpose
By removing the information used by the binding program and the symbolic debugging program, you can reduce the size of object files in the extended public object file format (xcoff.
Syntax
Strip [-V] [-R [-L] |-X [-L] |-T |-H |-E] [-X {32 |
Purpose
By removing the information used by the binding program and the symbolic debugging program, you can reduce the size of the object file that extends the Common Object File Format (xcoff.
Syntax
Strip [-V] [-R [-L]|-X [-L]|-T |-H |-E][-X {32 |
1, remove-g, equal to the program to do the--strip-debug2, strip program, equal to the program did--strip-debug and--strip-symbolAs a Linux developer, if you have not heard of the strip command, it is very inappropriate. Strip this word, everyone
Reproduced in: http://blog.csdn.net/stpeace/article/details/47090255As a Linux developer, if you have not heard of the strip command, it is very inappropriate. Strip this word, everyone should have learned, you remember to take off clothes on the
python3.4 Study notes (20) Python strip () function de-whitespace \n\r\t function usage
In Python, there are three functions in the string handler function that go to whitespace (including ' \ n ', ' \ R ', ' \ t ', '):
Strip at the same time
The Python Strip () method removes the character specified by the string's Kinsoku (the default is a space).GrammarStrip () method syntax:Str. Strip([chars]); Parameters
Chars--Removes the character specified by the tail of the string.
This article mainly introduces the Python strip () function and the split () function of the details and examples of relevant information, the need for friends can refer to the following
A detailed and practical example of the Python strip ()
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.